package study.base.calcu;

/**
 * 关系运算符
 * @author Administrator
 * @date 2021/1/3
 */
public class Demo02 {
    public static void main(String[] args) {
        //关系运算符：返回均为布尔类型
        int a = 10;
        int b = 6;
        // >:大于
        System.out.println(a > b);  //true
        // <:小于
        System.out.println(a < b);  //false
        // >=:大于等于
        System.out.println(a >= b); //true
        // <=:小于等于
        System.out.println(a <= b); //false
        // ==:相等
        System.out.println(a == b); //false
        // !=:不等
        System.out.println(a != b); //true
    }
}
